package com.easylinkin.linkappapi.grid.models.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 网格二维码管理
 *
 * @author
 * @since 2024-05-27
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GridQrCodeInfoVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    /**
     * 二维码编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 状态 0:空闲 1:在用 2:异常 3:作废
     */
    @TableField(value = "code_status")
    private Integer codeStatus;

    /**
     * 图片地址
     */
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 网格id
     */
    @TableField(value = "grid_id")
    private String gridId;

    /**
     * 网格名称
     */
    @TableField(value = "grid_name")
    private String gridName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;
    /**
     * 使用次数
     */
    @TableField(exist = false)
    private Integer count;

}
